package io.wins.vertx.service;

import io.vertx.core.Vertx;
import io.vertx.core.eventbus.Message;
import io.wins.vertx.entity.Role;
import io.wins.vertx.service.impl.RoleServiceImpl;

public interface RoleService {
    String SERVICE_ADDRESS = "role.service";
    static RoleService create(final Vertx vertx) {return new RoleServiceImpl(vertx);}
    RoleService getRoleById(final String id, final Message tMessage);
    RoleService listRole(final Message tMessage);
    RoleService createRole(final Role role, Message tMessage);
    RoleService deleteRole(final String id, Message tMessage);

}
